<?php

namespace App\Models;

class UserInfoDetail extends Model
{
    protected $table = 'ucenter_user_info_detail';
    protected $primaryKey = 'user_name';
    public $incrementing = false;
    public $timestamps = false;
    protected $guarded = ['user_name'];

    public static function getByUserMobile(string $user_mobile) : UserInfoDetail
    {
        return self::whereUserMobile($user_mobile)->first();
    }
}
